# ==============================================================================================
# Microsoft PowerShell Source File
# NAME: 
# AUTHOR: Infomation Technology , Pullman School District
# DATE  : 3/31/2010
# COMMENT: 
# ==============================================================================================
#! DEPLOYMENT TYPES: admin;policy;profiles;scheduled;utility
#! DEPLOYMENT LOCATIONS: Location1;Location2
# ==============================================================================================

# Load our config file
$CGPOConfig = New-Object System.Xml.XmlDocument
$CGPOConfig.Load("$PSScriptRoot\CSB.GroupPolicy.Config.Xml")

# Setup some variables in the current scope
New-Variable -Scope Global -Name CGPO_Domain 							-Value ($CGPOConfig.CSB_GroupPolicy_Config.Domain.'#text').trim()
# If no cache directory has been setup in the Config file we use a subdirectory off the
# user's temp directory
if ($CGPOConfig.CSB_GroupPolicy_Config.CGPOXmlCachePath.'#text' -eq $null)
{
	New-Variable -Scope Global -Name CGPO_ReportXmlCachePath	-Value "$env:temp\CGPOReportXmlCache"
}
else
{
	New-Variable -Scope Global -Name CGPO_ReportXmlCachePath	-Value ($CGPOConfig.CSB_GroupPolicy_Config.CGPOXmlCachePath.'#text').trim()
}

# Variable Cleanup
Remove-Variable CGPOConfig